# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-wol
_pkgname=wol
pkgver=0.2
pkgrel=1
pkgdesc='Instant query from wolframalpha.'
url='https://pypi.org/project/wol/#files'
arch=('any')
license=('custom:unknown')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('fdb89af73437614956506a86c0ef53ec128c256ea8ef8060ff5694ef5c16ca6522c9c8879140b0f351ffb838df6b5823cfb7f0d202a6f3458a568950a8e9b498')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

